##title=Returns a list of values for the specified component
##parameters=componentIdentity=None

ass = context.knowledgeengine_assessmentstorageservice

component = context.getComponentByIdentity( componentIdentity )
model = component.getModel()

assessments = ass.getAssessmentsForModel( model )
d_values = {}
for assessment in assessments:
    value = assessment.getComponentByIdentityValue( componentIdentity )
    if value: d_values[value] = True

values = d_values.keys()
values.sort()

return values